package com.demo.services.user.impl;

import com.demo.modules.user.po.UsersPO;
import com.demo.services.user.UserService;
import com.demo.services.user.repo.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Optional;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserRepository userRepository;

    @Override
    public Optional<UsersPO> findByAccount(String account) {
        return userRepository.findByAccount(account);
    }
}
